import request from '@/utils/request';
import { getParamsSuffix } from '@/utils/paramsUtils';

/**
 * 查询所有
 * @returns {Promise<any>}
 * @param query
 */
export async function listAllByUser(query) {
  const params = getParamsSuffix(query);
  return request(`/api/cdcerservice/v1/gastroscopediagnosis/listAllByUser?${params}`);
}

/**
 * 更新
 * @param params
 * @returns {Promise<any>}
 */
export async function updateRecords(params) {
  return request(`/api/cdcerservice/v1/gastroscopediagnosis/updateRecords`, {
    method: 'POST',
    requestType: 'form',
    data: { ...params },
  });
}


